import React, { useState } from "react";
import { Badge, Button, Card, Descriptions } from "antd";
import { reqGetHospitalShow } from "@/api/hospital/hospitalList";
export default function HospitalShow() {
  // 初始化数据  （必填）
  let data = {
    bookingRule: {
      cycle: 0,
      releaseTime: "",
      stopTime: "",
      quitTime: "",
      rule: [],
    },
    hospital: {
      id: "",
      createTime: "",
      param: {
        hostypeString: "",
        fullAddress: "",
      },
      hoscode: "",
      hosname: "",
      hostype: "",
      provinceCode: "",
      cityCode: "",
      districtCode: "",
      logoData: "",
      intro: "",
      route: "",
      status: 0,
    },
  };

  let [hospitalShow, setHospitalShow] = useState(data);

  return (
    <Card>
      <Descriptions
        title="基本信息"
        bordered
        column={2} // 一行的 Descriptions  为 两个
      >
        <Descriptions.Item label="医院名称">123</Descriptions.Item>
        <Descriptions.Item label=" 医院logo">Prepaid</Descriptions.Item>
        <Descriptions.Item label="医院编码">YES</Descriptions.Item>
        <Descriptions.Item label="医院地址">
          2018-04-24 18:00:00
        </Descriptions.Item>
        <Descriptions.Item label="坐车路线" span={2}>
          2019-04-24 18:00:00
        </Descriptions.Item>
        <Descriptions.Item label="医院简介" span={2}>
          xxxx
        </Descriptions.Item>
      </Descriptions>

      <Descriptions
        title="预约规则信息"
        bordered
        column={2}
        style={{ margin: "30px 0" }}
      >
        <Descriptions.Item label="预约周期">$20.00</Descriptions.Item>
        <Descriptions.Item label="放号时间">$20.00</Descriptions.Item>
        <Descriptions.Item label=" 停挂时间">$60.00</Descriptions.Item>
        <Descriptions.Item label=" 退号时间">xxxxx</Descriptions.Item>
        <Descriptions.Item label=" 预约规则" span={2}>
          xxxxx
        </Descriptions.Item>
      </Descriptions>
      <Button type="primary">返回</Button>
    </Card>
  );
}
